unit RoleService;

interface

uses
  System.SysUtils, System.Classes, MVC.JSON, MVC.DataSet, MVC.Service, MVC.DB;

type
  TRoleService = record
    function getdata(): string;
  end;

implementation

uses
  TableMap;

{ TRoleService }

function TRoleService.getdata: string;
var
  conn: Iconn;
  sql: ISQL;
begin
  conn := IIConn;
  sql := IISQL(tb_dict_role);
  Result := conn.DB.Find(sql).toJSONArray;
end;

end.

